import Vue from 'vue'
import Router from 'vue-router'
import AppList from './views/AppList.vue'
import AppAdd from './views/AppAdd.vue'
import RoleList from './views/RoleList.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: '/account_allocation/',
  routes: [
    {
      path: '/',
      redirect: '/app_list'
    },
    {
      path: '/app_list',
      name: 'app_list',
      component: AppList
    },
    {
      path: '/app_add',
      name: 'app_add',
      component: AppAdd
    },
    {
      path: '/role_list',
      name: 'role_list',
      component: RoleList
    }
  ]
})
